//
//  VEAssionTitleTableViewCell.m
//  VEMoneyPorject
//
//  Created by BlueWind on 2018/9/14.
//  Copyright © 2018年 陈建. All rights reserved.
//

#import "VEAssionTitleTableViewCell.h"

@implementation VEAssionTitleTableViewCell


/** 返回循环利用的cell */
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self= [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self loadDefaultSetting];
    }
    return self;
}

/** 加载默认UI元素和需要的数据 */
- (void)loadDefaultSetting {
    
    self.titleLabel = [UILabel new];
    [self.contentView addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(UIEdgeInsetsMake(GAP8, GAP15, GAP8, GAP15));
    }];
    self.titleLabel.text = @"社群介绍";
    
    UIView *line = [UIView new];
    [self.contentView addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.contentView);
        make.left.equalTo(self.contentView).offset(GAP15);
        make.right.equalTo(self.contentView).offset(-GAP15);
        make.height.mas_equalTo(0.5);
    }];
    line.backgroundColor = [UIColor colorWithHexString:kLineViewBgColor];
    
}

@end
